package com.lagou.sqlSession;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    //查询多条
    <E> List<E> selectList(String statementId,Object... params) throws Exception;

    //查询单个
    <T> T selectOne(String statementId,Object...params) throws Exception;

    //为DAO层接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);

    public void update(String statementId, Object... params) throws Exception;

    public void insert(String statementId, Object... params) throws Exception;

    public void delete(String statementId, Object... params) throws Exception;

}
